package zen2;

public class MotionEvent {
	public enum Kind {
		ACTION_DOWN, ACTION_UP, ACTION_MOVE, WHEEL_UP, WHEEL_DOWN
	}

	private final int x;
	private final int y;
	private final Kind kind;

	MotionEvent(int x, int y, Kind actionDown) {
		this.x = x;
		this.y = y;
		this.kind = actionDown;
	}

	public int getX() {
		return x;
	}

	public int getY() {
		return y;
	}

	public Kind getKind() {
		return kind;
	}

	@Override
	public String toString() {
		return "(" + x + ',' + y + ") " + kind;
	}
}
